/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package include.fxml;

import UML.Controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;

/**
 *
 * @author David
 */
public class toolbars implements Initializable
{
  @FXML private Button tbNewView;
  @FXML private Button tbCreateProject;
  
  @Override
  public void initialize(URL url, ResourceBundle rb)
  {
    tbNewView.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent event) {
        Controller.getInstance().createNewClassDiagram();
      }
    });
    
    tbCreateProject.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent event) {
        throw new UnsupportedOperationException("Not supported yet.");
      }
    });
  }  
}
